package com.scrcu.cloud.wechat.home.endpoint.customer.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.scrcu.cloud.wechat.home.endpoint.customer.vo.BookInfoPlus;
import com.scrcu.cloud.wechat.home.endpoint.customer.entity.BookInfo;
import com.scrcu.cloud.wechat.home.endpoint.customer.vo.BookInfoPlusWithUserInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface BookMapper extends BaseMapper<BookInfo> {
    List<BookInfo> getBookInfoByUid(@Param("uid") String uid);

    ArrayList<BookInfoPlus> selectByOpenId4Status(@Param("openid") String openid, @Param("status") String status);
    ArrayList<BookInfoPlus> selectByMapId(@Param("map_id") String map_id, @Param("year") Integer year,
                                          @Param("month") Integer month,@Param("day") Integer day);


    ArrayList<BookInfoPlusWithUserInfo> getBooksByStaff(@Param("staffid") String staffid, @Param("status") String status);
}
